﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4.5/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4.5/themes/default/easyui.css">
    <script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="js/jquery-easyui-1.4.5/locale/easyui-lang-zh_CN.js"></script>


<script type="text/javascript">
	$(function(){
		$("#tt").tree({onClick:function(node){
			var str=node.url;
			/* 在进行判断是否是叶子节点，如果是叶子节点就进行跳转 */
			 var isLeaf=$('#tt').tree("isLeaf",node.target);
                 if(isLeaf)
                 {
                 //组合页面使用 
                 parent.rightFrame.location=str;
                 }
		}});
	});
</script>


</head>

<body style="background:#f0f9fd;">
	
    
    <div>
    	  <ul id="tt" class="easyui-tree" data-options="url:'role/listRight.action'"></ul>   
  </div>
       
</body>
</html>
